﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
/*----------------------------------------------------------------
            // Copyright (C) 2008  万万网(OneOne.Cn)   版权所有。
            // 文件名：Model,数据模态
            // 文件功能描述：
            //   此文件将数据库字段赋值
            // 
            // 创建标识：Wangwei 2008-10-7

//----------------------------------------------------------------*/


/// <summary>
/// Model 的摘要说明
/// </summary>
public class Model
{
    public static string StrFormUrl = CommonClass.ReWebConfig("webUrl");//设置Form提交后返回的路径
    public Model()
    {
        //
        // TODO: 在此处添加构造函数逻辑
        //
    }

    /// <summary>
    /// 设置Form提交后返回的路径
    /// </summary>
    public static string _StrFormUrl
    {
        get
        {
            return StrFormUrl;
        }
        set
        {
            if (value == null)
            {

                StrFormUrl = CommonClass.ReWebConfig("webUrl");
            }
            else
            {
                StrFormUrl = CommonClass.ReWebConfig("webUrl") + value;
            }
        }
    }




}

#region 文章

/// <summary>
/// 文章相关
/// </summary>
public class ArticleInfo
{
    private int ArticleID = 0, SpecialID = 0, Hits = 0, isdefault = 0, isHot = 0, OnTop = 0, Elite = 0, Passed = 0, PaginationType = 0, ClassID = 0, isdel = 0, TitleFontType = 0, MaxCharPerPage = 0, IncludePic = 0;
    private string Title = "", CopyFrom = "", Key = "", Content = "", DefaultPicUrl = "", TitleFontColor = "";
    private DateTime UpdateTime;

    public DateTime _UpdateTime { get { return UpdateTime; } set { UpdateTime = value; } }
    public int _ArticleID { get { return ArticleID; } set { ArticleID = value; } }
    public int _SpecialID { get { return SpecialID; } set { SpecialID = value; } }
    public int _Hits { get { return Hits; } set { Hits = value; } }
    public int _isdefault { get { return isdefault; } set { isdefault = value; } }
    public int _isHot { get { return isHot; } set { isHot = value; } }
    public int _OnTop { get { return OnTop; } set { OnTop = value; } }
    public int _Elite { get { return Elite; } set { Elite = value; } }
    public int _Passed { get { return Passed; } set { Passed = value; } }
    public int _PaginationType { get { return PaginationType; } set { PaginationType = value; } }
    public int _ClassID { get { return ClassID; } set { ClassID = value; } }
    public int _isdel { get { return isdel; } set { isdel = value; } }
    public int _TitleFontType { get { return TitleFontType; } set { TitleFontType = value; } }
    public int _MaxCharPerPage { get { return MaxCharPerPage; } set { MaxCharPerPage = value; } }
    public string _Title { get { return Title; } set { Title = value; } }
    public string _CopyFrom { get { return CopyFrom; } set { CopyFrom = value; } }
    public string _Key { get { return Key; } set { Key = value; } }
    public string _Content { get { return Content; } set { Content = value; } }
    public int _IncludePic { get { return IncludePic; } set { IncludePic = value; } }
    public string _DefaultPicUrl { get { return DefaultPicUrl; } set { DefaultPicUrl = value; } }
    public string _TitleFontColor { get { return TitleFontColor; } set { TitleFontColor = value; } }
}

#endregion

#region 文章分类
/// <summary>
/// 文章分类相关
/// </summary>
public class ArticleClassInfo
{
    private int Classid = 0, parentId = 0, Depth = 0, RootID = 0, Child = 0, PrevID = 0, NextID = 0, OrderID = 0, IsElite = 0,Types=0;
    private string className = "", ParentPath = "", LinkUrl = "", ClassPicUrl = "", Readme = "";

    public int _Classid { get { return Classid; } set { Classid = value; } }
    public int _parentId { get { return parentId; } set { parentId = value; } }
    public int _Depth { get { return Depth; } set { Depth = value; } }
    public int _RootID { get { return RootID; } set { RootID = value; } }

    public int _Child { get { return Child; } set { Child = value; } }

    public int _PrevID { get { return PrevID; } set { PrevID = value; } }
    public int _NextID { get { return NextID; } set { NextID = value; } }
    public int _OrderID { get { return OrderID; } set { OrderID = value; } }
    public int _IsElite { get { return IsElite; } set { IsElite = value; } }
    public string _Readme { get { return Readme; } set { Readme = value; } }

    public string _className { get { return className; } set { className = value; } }
    public string _ParentPath { get { return ParentPath; } set { ParentPath = value; } }
    public string _LinkUrl { get { return LinkUrl; } set { LinkUrl = value; } }
    
    public string _ClassPicUrl { get { return ClassPicUrl; } set { ClassPicUrl = value; } }

    public int _Types { get { return Types; } set { Types = value; } }

}
#endregion


#region 文章专题
/// <summary>
/// 文章专题相关
/// </summary>
public class SpecialInfo
{
    private int Specialid = 0, BrowsePurview = 0, OrderID = 0, ontop = 0, istype = 0, ischeck = 0, isdel = 0;
    private string SpecialName = "", ReadMe = "", defaultpic = "", linkUrl = "";

    public string _SpecialName { get { return SpecialName; } set { SpecialName = value; } }
    public string _ReadMe { get { return ReadMe; } set { ReadMe = value; } }

    public int _Specialid { get { return Specialid; } set { Specialid = value; } }
    public int _BrowsePurview { get { return BrowsePurview; } set { BrowsePurview = value; } }
    public int _OrderID { get { return OrderID; } set { OrderID = value; } }
    public string _defaultpic { get { return defaultpic; } set { defaultpic = value; } }
    public int _ontop { get { return ontop; } set { ontop = value; } }
    public int _istype { get { return istype; } set { istype = value; } }
    public int _isdel { get { return isdel; } set { isdel = value; } }
    public int _ischeck { get { return ischeck; } set { ischeck = value; } }


    public string _linkUrl { get { return linkUrl; } set { linkUrl = value; } }

}
#endregion

